package pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Category entity. @author MyEclipse Persistence Tools
 */

public class Category implements java.io.Serializable {

	// Fields

	private Integer categoryId;
        private Integer articleCount;
	private String categoryName;
	private Set threads = new HashSet(0);
	private Set users = new HashSet(0);
        private Thread lastThread;

	// Constructors

	/** default constructor */
	public Category() {
	}

	/** minimal constructor */
	public Category(Integer categoryId, String categoryName) {
		this.categoryId = categoryId;
		this.categoryName = categoryName;
	}

	/** full constructor */
	public Category(Integer categoryId, String categoryName, Set threads,
			Set users,Integer articleCount,Thread lastThread) {
		this.categoryId = categoryId;
		this.categoryName = categoryName;
		this.threads = threads;
		this.users = users;
                this.articleCount = articleCount;
                this.lastThread = lastThread;
	}

    public Thread getLastThread() {
        return lastThread;
    }

    public void setLastThread(Thread lastThread) {
        this.lastThread = lastThread;
    }

        
    public Integer getArticleCount() {
        return articleCount;
    }

    public void setArticleCount(Integer articleCount) {
        this.articleCount = articleCount;
    }

	// Property accessors

	public Integer getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryName() {
		return this.categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public Set getThreads() {
		return this.threads;
	}

	public void setThreads(Set threads) {
		this.threads = threads;
	}

	public Set getUsers() {
		return this.users;
	}

	public void setUsers(Set users) {
		this.users = users;
	}

}